package java_DesignPattern.CreatorPattern.PrototypePattern.ShallowClone;

/**
 * 原型模式---浅克隆
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        JZh jZh = new JZh();
        JZh jzh = jZh.clone();

        jZh.setName("zsj");
        jzh.setName("bjj");

        jZh.show();
        jzh.show();
    }
}
